pp108 : Reusing XForms

Reusing XForms

This topic describes the procedure to reuse XForms.

You can use an existing XForm as a template to quickly design other XForms. You can then modify these XForms to specialize them as required.

  1. Open the XForm in the XForms Designer.
  2. Drag the XForm that you want to use as the template to the open XForm in the Designer Area. A message appears warning that the operation cannot be reverted.
  3. Click OK to proceed. The template appears in the XForm and is enclosed by a border that is invisible at run time.

The XForm is added as a template.

Note:

  • When added as a template, the script available in the XForm is also copied with it. Ensure that the names of event handlers for both the XForms are different. If not, you must manually link events to the correct event handlers.
  • You can add additional controls to the XForm, if required.
  • To remove the template, you must delete its interface and manually remove style sheets and scripts from the property sheet of the XForm. Additionally, you must remove XML definitions and script from the XML Editor and Script Editor, respectively.